package com.neuedu.service;

import java.util.List;
import java.util.Map;

import com.neuedu.model.Food;

public interface FoodService {

	public int countFood();
	public List<Food> findAll(Map<String, Object> map);
	public int addFood(Food f);
	public int updateFood(Food f);
	public int deleteFood(int id);
	
	public List<Food> findList();
	
	

	//前台查询5条最新菜谱
		public List<Food> findTop();
		
		
		//前台查询所有美食
		public List<Food> findAllMenu();

		//前台推荐
		public List<Food> findNewest();
		
		//美食详情页
		public Food findFoodById(Food f);
		
		//根据做法查询显示在页面上
	    public List<Food> findFoodByMakeNo(Food  food);
	    
	  //根据类型查询显示在页面上
	    public List<Food> findFoodByTypeNo(Food  food );
		
	    //前台模糊查询搜索
	    public Food findFoodByName(Food f);
	    
	    public List<Food> findFoodArticle(Food  food );
	
}
